Cmake_minimum_required(VERSION 3.10)
PROJECT(ch2)
include_directories(.)
add_definitions(-ggdb)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build)

find_package(Threads)

set(CMAKE_CXX_FLAGS "${CAMKE_CXX_FLAGS} -std=c++11")
#set(CMAKE_CXX_FLAGS "${CAMKE_CXX_FLAGS} -std=c++11 -lpthread")
#aux_source_directory(src DIR_SRCS)
add_executable(client src/client.c)
#add_executable(client client.c)
add_executable(server src/server.c)
target_link_libraries (client ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries (server ${CMAKE_THREAD_LIBS_INIT})
